#需求：登陆成功
#导包
import requests



#发送请求
def test_login(self):
    url="http://kdtx-test.itheima.net/api/login"
    data={
    "username": "admin",
    "password": "admin123",
    "code": "2",
    "uuid": "5c5c4d1379ac4578aae02799afc1c348"
        }
    res_l= requests.post(url=url,json=data,headers={'Content-Type':'application/json'})
    print(res_l.status_code)
    print(res_l.json())
    print(res_l.text)